/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.domain.gl;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author jay
 */
public class FstmtClone implements java.io.Serializable {


     private Integer fstmtId;
     private String fstmtName;
     private String format;
     private List<Fstmtline> fstmtlines;
     
     public FstmtClone() {
        this.fstmtlines = new ArrayList<>();
    }
    
    public static List<Fstmtline> cloneLine(List<Fstmtline> original) {
        List<Fstmtline> copy = new ArrayList<>();
        for (int i=0; i<original.size();i++) {
            copy.add(Fstmtline.clone(original.get(i)));
        }
        return copy;
    }
    
    public static Fstmt clone(FstmtClone original) {
        Fstmt copy = new Fstmt();
        if (original != null) {
            copy.setFormat(original.getFormat());
            copy.setFstmtId(original.getFstmtId());
            copy.setFstmtName(original.getFstmtName());
            copy.setFstmtlines(cloneLine(original.getFstmtlines()));
        }
        return copy;
    }
   
    public Integer getFstmtId() {
        return this.fstmtId;
    }
    
    public void setFstmtId(Integer fstmtId) {
        this.fstmtId = fstmtId;
    }
    public String getFstmtName() {
        return this.fstmtName;
    }
    
    public void setFstmtName(String fstmtName) {
        this.fstmtName = fstmtName;
    }
    public String getFormat() {
        return this.format;
    }
    
    public void setFormat(String format) {
        this.format = format;
    }

    public List<Fstmtline> getFstmtlines() {
        return fstmtlines;
    }

    public void setFstmtlines(List<Fstmtline> fstmtlines) {
        this.fstmtlines = fstmtlines;
    }
    
}
